// import request from '@/utils/request'
import { userInfoData } from '@/utils/data.js'

/**
 * 登录
 */
export const login = (data) => {
	// return request({
	// 	url: '/sys/login',
	// 	method: 'POST',
	// 	data
	// })
	return new Promise((resolve, reject) => {
		resolve(userInfoData)
	})
}

/**
 * 获取用户信息
 */
export const getUserInfo = () => {
	// return request({
	// 	url: '/sys/profile'
	// })
	return new Promise((resolve, reject) => {
		resolve(userInfoData)
	})
}
